rustc_metadata: test loading atoi instead of cos
authorJosh Stone <jistone@redhat.com>
Fri, 27 Jul 2018 00:20:02 +0000 (17:20 -0700)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Aug 2018 09:18:10 +0000 (10:18 +0100)
commit5e532171f5747a2e25f8d74b4aafbb86e5624a11
tree08dbb4721fe885a7ca5f1cabfeec60df7769ce71
parent675c28aeb1eabaa9940aac1474aa3dfd69ec8ae9
rustc_metadata: test loading atoi instead of cos

Some platforms don't actually have `libm` already linked in the test
infrastructure, and then `dynamic_lib::tests::test_loading_cosine` would
fail to find the "cos" symbol.  Every platform running this test should
have `libc` and "atoi" though, so try to use that symbol instead.

Fixes #45410.

Gbp-Pq: Name u-rust-52760-test_loading_atoi.patch
src/librustc_metadata/dynamic_lib.rs